import request from '@/utils/request'

// 查询仪器对外服务列表
export function listInstrumentationForeignService(query) {
  return request({
    url: '/system/instrumentationForeignService/list',
    method: 'get',
    params: query
  })
}

// 查询仪器对外服务详细
export function getInstrumentationForeignService(id) {
  return request({
    url: '/system/instrumentationForeignService/' + id,
    method: 'get'
  })
}

// 新增仪器对外服务
export function addInstrumentationForeignService(data) {
  return request({
    url: '/system/instrumentationForeignService',
    method: 'post',
    data: data
  })
}

// 修改仪器对外服务
export function updateInstrumentationForeignService(data) {
  return request({
    url: '/system/instrumentationForeignService',
    method: 'put',
    data: data
  })
}

// 删除仪器对外服务
export function delInstrumentationForeignService(id) {
  return request({
    url: '/system/instrumentationForeignService/' + id,
    method: 'delete'
  })
}

// 导出仪器对外服务
export function exportInstrumentationForeignService(query) {
  return request({
    url: '/system/instrumentationForeignService/export',
    method: 'get',
    params: query
  })
}
